package com.sailfish.springbootdemo.service.db2;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db2.PcbCapacityParam;
import com.sailfish.springbootdemo.pojo.db2.PcbSonFactoryInfo;

import java.util.List;

public interface PcbSonFactoryInfoService {

    List<PcbSonFactoryInfo> getAll(Integer parentId, String companyName, String companyNameEn, String companyWebsite, String sonFactoryName,
                                   String sonFactoryNameEn, String sonFactoryIntroduction, String sonFactoryPhone,
                                   String sonFactoryContacts, String sonFactoryEmail, String sonFactoryCategory, Integer status);

    PcbSonFactoryInfo getById(Integer id);

    List<PcbSonFactoryInfo> getByIds(List<Integer> ids);

    Result insert(PcbSonFactoryInfo param);

    Result delete(Integer id);

    Result update(PcbSonFactoryInfo param);

    List<Integer> getAllId();


//    Result addOrUpdate(PcbSonFactoryInfo param,String mode, String authorizationHeader);
}
